package com.platform.service;

import com.platform.dao.ApiFollowMapper;
import com.platform.dao.ApiOrderMapper;
import com.platform.entity.ApiFollowVo;
import com.platform.entity.ApiOrderVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 订单Service接口
 *
 * @author zhurusen
 * @email 524227263@qq.com
 * @date 2018-05-15 15:50:14
 */
@Service
public class ApiOrderService {

    @Autowired
    private ApiOrderMapper apiOrderMapper;

    public void save(ApiOrderVo apiOrderVo) {
        apiOrderMapper.save(apiOrderVo);
    }

    public List<ApiOrderVo> queryList(Map params) {
        return apiOrderMapper.queryList(params);
    }

    public ApiOrderVo selectOne(Long id) {
        return apiOrderMapper.queryObject(id);
    }

    public void updata(ApiOrderVo apiOrderVo) {
        apiOrderMapper.update(apiOrderVo);
    }

    public Integer selectCount(Map<String, Object> params) {
        return apiOrderMapper.queryTotal(params);
    }

    public void del(Long id) {
        apiOrderMapper.delete(id);
    }
}
